<template>
  <div>
    <el-button
      type="info"
      @click="Loginout"
    >退出</el-button>
  </div>
</template>
<script>
export default {
  data: () => ({}),
  methods: {
    Loginout() {
      //清空token
      window.sessionStorage.clear('token')
      //跳转到登录页
      this.$router.push('/login')
    }
  }
}
</script>
<style lang="scss" scoped>
</style>